gdk: Drop gdk_surface_new_temp
authorMatthias Clasen <mclasen@redhat.com>
Thu, 8 Oct 2020 01:18:25 +0000 (21:18 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 8 Oct 2020 01:18:25 +0000 (21:18 -0400)
It is not used anymore.

gdk/gdksurface.c
gdk/gdksurfaceprivate.h

index 168a1264fa71de22eaf8f10d3f3f9b6c2737c86f..4b485a012d66012cdb63857a77475e90816e072a 100644 (file)
@@ -816,29 +816,6 @@ gdk_surface_new_toplevel (GdkDisplay *display)
                           NULL, 0, 0, 1, 1);
 }
 
-/**
- * gdk_surface_new_temp: (constructor)
- * @display: the display to create the surface on
- * @position: position of the surface on screen
- *
- * Creates a new temporary surface.
- * The surface will bypass surface management.
- *
- * Returns: (transfer full): the new #GdkSurface
- **/
-GdkSurface *
-gdk_surface_new_temp (GdkDisplay         *display,
-                      const GdkRectangle *position)
-{
-  g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
-  g_return_val_if_fail (position != NULL, NULL);
-
-  return gdk_surface_new (display, GDK_SURFACE_TEMP,
-                          NULL,
-                          position->x, position->y,
-                          position->width, position->height);
-}
-
 /**
  * gdk_surface_new_popup: (constructor)
  * @parent: the parent surface to attach the surface to
index 59563b79aac256f8f6961c64a318a7dfad89d1ee..f655d6c97f152f7ab9ccea1c2c9cb94ac62c53d6 100644 (file)
@@ -277,9 +277,6 @@ void       gdk_surface_enter_monitor (GdkSurface *surface,
 void       gdk_surface_leave_monitor (GdkSurface *surface,
                                       GdkMonitor *monitor);
 
-GdkSurface *   gdk_surface_new_temp             (GdkDisplay    *display,
-                                                 const GdkRectangle *position);
-
 void gdk_surface_destroy_notify       (GdkSurface *surface);
 
 void gdk_synthesize_surface_state (GdkSurface     *surface,